import request from "@/utils/request"

// 获取购物车列表
export function getCartList() {
    return request({
        url: "/member/cart",
        method: "GET"
    })
}

// 假如购物车列表
export function addCartList(data) {
    return request({
        url: "/member/cart",
        method: "POST",
        data
    })
}

// 删除购物车
export function deleteCartList(ids) {
    return request({
        url: "/member/cart",
        method: "DELETE",
        data: { ids }
    })
}

// 合并购物车
export function mergeCartList(data) {
    return request({
        url: "/member/cart/merge",
        method: "POST",
        data
    })
}